package mbp.gui.frames;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import mbp.core.Service;
import mbp.gui.panels.ServiceEditPanel;

public class ServiceEditor extends JFrame {

	private JPanel contentPane;
	private ServiceEditPanel serviceEditPanel;
	private Service service;


	/**
	 * Create the frame.
	 */
	public ServiceEditor(Service service) 
	{
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 691, 312);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		serviceEditPanel = new ServiceEditPanel();
		contentPane.add(serviceEditPanel);
		serviceEditPanel.loadService(service);
	}

}
